#!/usr/bin/python
# -*- coding: UTF-8 -*-
# author : bird.zhang@ximalaya.com

def outer(func):
    print(func.__dict__)

    def inner(x):
        print('before')
        func(x)
        print('after')

    return inner


@outer
def f1(x):
    print(x)


f1(1)
